package com.atguigu.algorithm;

import java.util.Scanner;

public class PasswordAnalysis {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while(scanner.hasNextLine()){
            String password=scanner.nextLine();
            StringBuilder res=new StringBuilder();
            for(int i=0;i<password.length();i++){
                char ch=password.charAt(i);
                if(ch>='0' && ch<='9'){
                    res.append(ch);
                }
            }
            System.out.println(res.toString());
        }
    }
}
